<div class="phuongxas view">
<h2><?php  __('Phuongxa');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $phuongxa['Phuongxa']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Quanhuyen'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($phuongxa['Quanhuyen']['id'], array('controller' => 'quanhuyens', 'action' => 'view', $phuongxa['Quanhuyen']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phuongxa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $phuongxa['Phuongxa']['phuongxa']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ghichu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $phuongxa['Phuongxa']['ghichu']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Phuongxa', true), array('action' => 'edit', $phuongxa['Phuongxa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Phuongxa', true), array('action' => 'delete', $phuongxa['Phuongxa']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phuongxa['Phuongxa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Phuongxas', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phuongxa', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Quanhuyens', true), array('controller' => 'quanhuyens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Quanhuyen', true), array('controller' => 'quanhuyens', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Canbos', true), array('controller' => 'canbos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Canbo', true), array('controller' => 'canbos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sinhviens', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Canbos');?></h3>
	<?php if (!empty($phuongxa['Canbo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Tongiao Id'); ?></th>
		<th><?php __('Phuongxa Id'); ?></th>
		<th><?php __('Dantoc Id'); ?></th>
		<th><?php __('Chidoancb Id'); ?></th>
		<th><?php __('Hotencb'); ?></th>
		<th><?php __('Ngaysinhcb'); ?></th>
		<th><?php __('Noisinhcb'); ?></th>
		<th><?php __('Phaicb'); ?></th>
		<th><?php __('Diachicb'); ?></th>
		<th><?php __('Emailcb'); ?></th>
		<th><?php __('Namvaonghe'); ?></th>
		<th><?php __('Ngayvaodoancb'); ?></th>
		<th><?php __('Noivaodoancb'); ?></th>
		<th><?php __('Ngayvaodangcb'); ?></th>
		<th><?php __('Noivaodangcb'); ?></th>
		<th><?php __('Ngaychuyendencb'); ?></th>
		<th><?php __('Ngaychuyendicb'); ?></th>
		<th><?php __('Ngayttdoancb'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($phuongxa['Canbo'] as $canbo):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $canbo['id'];?></td>
			<td><?php echo $canbo['tongiao_id'];?></td>
			<td><?php echo $canbo['phuongxa_id'];?></td>
			<td><?php echo $canbo['dantoc_id'];?></td>
			<td><?php echo $canbo['chidoancb_id'];?></td>
			<td><?php echo $canbo['hotencb'];?></td>
			<td><?php echo $canbo['ngaysinhcb'];?></td>
			<td><?php echo $canbo['noisinhcb'];?></td>
			<td><?php echo $canbo['phaicb'];?></td>
			<td><?php echo $canbo['diachicb'];?></td>
			<td><?php echo $canbo['emailcb'];?></td>
			<td><?php echo $canbo['namvaonghe'];?></td>
			<td><?php echo $canbo['ngayvaodoancb'];?></td>
			<td><?php echo $canbo['noivaodoancb'];?></td>
			<td><?php echo $canbo['ngayvaodangcb'];?></td>
			<td><?php echo $canbo['noivaodangcb'];?></td>
			<td><?php echo $canbo['ngaychuyendencb'];?></td>
			<td><?php echo $canbo['ngaychuyendicb'];?></td>
			<td><?php echo $canbo['ngayttdoancb'];?></td>
			<td><?php echo $canbo['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'canbos', 'action' => 'view', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'canbos', 'action' => 'edit', $canbo['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'canbos', 'action' => 'delete', $canbo['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $canbo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Canbo', true), array('controller' => 'canbos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Sinhviens');?></h3>
	<?php if (!empty($phuongxa['Sinhvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Phuongxa Id'); ?></th>
		<th><?php __('Tongiao Id'); ?></th>
		<th><?php __('Dantoc Id'); ?></th>
		<th><?php __('Chidoansv Id'); ?></th>
		<th><?php __('Hotensv'); ?></th>
		<th><?php __('Ngaysinhsv'); ?></th>
		<th><?php __('Noisinh'); ?></th>
		<th><?php __('Diachilienlac'); ?></th>
		<th><?php __('Phaisv'); ?></th>
		<th><?php __('Sdt'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Ngayvaodoan'); ?></th>
		<th><?php __('Noivaodoan'); ?></th>
		<th><?php __('Ngayvaodang'); ?></th>
		<th><?php __('Noivaodang'); ?></th>
		<th><?php __('Ngaychuyenden'); ?></th>
		<th><?php __('Ngaychuyendi'); ?></th>
		<th><?php __('Truongthanhdoan'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($phuongxa['Sinhvien'] as $sinhvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $sinhvien['id'];?></td>
			<td><?php echo $sinhvien['phuongxa_id'];?></td>
			<td><?php echo $sinhvien['tongiao_id'];?></td>
			<td><?php echo $sinhvien['dantoc_id'];?></td>
			<td><?php echo $sinhvien['chidoansv_id'];?></td>
			<td><?php echo $sinhvien['hotensv'];?></td>
			<td><?php echo $sinhvien['ngaysinhsv'];?></td>
			<td><?php echo $sinhvien['noisinh'];?></td>
			<td><?php echo $sinhvien['diachilienlac'];?></td>
			<td><?php echo $sinhvien['phaisv'];?></td>
			<td><?php echo $sinhvien['sdt'];?></td>
			<td><?php echo $sinhvien['email'];?></td>
			<td><?php echo $sinhvien['ngayvaodoan'];?></td>
			<td><?php echo $sinhvien['noivaodoan'];?></td>
			<td><?php echo $sinhvien['ngayvaodang'];?></td>
			<td><?php echo $sinhvien['noivaodang'];?></td>
			<td><?php echo $sinhvien['ngaychuyenden'];?></td>
			<td><?php echo $sinhvien['ngaychuyendi'];?></td>
			<td><?php echo $sinhvien['truongthanhdoan'];?></td>
			<td><?php echo $sinhvien['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'sinhviens', 'action' => 'view', $sinhvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'sinhviens', 'action' => 'edit', $sinhvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'sinhviens', 'action' => 'delete', $sinhvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sinhvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
